package com.liner.homework.first;

/**
 * Car类：
 * brand(品牌)，color，price，构造方法()，start()、run()、stop()
 */
public class Car {
    private String brand;
    private String color;
    private double price;

    public Car() {
    }

    public Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }


    public void stop() {
        System.out.println(brand + "停下来了...");
    }

    public void start() {
        System.out.println(brand + "启动了...");
    }

    public void run() {
        System.out.println(brand + "运行起来了,它是" + color + "的,价值" + price + "万元");
    }
}
